package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMoney extends Object implements IMessageBase
    {
        public var coin:int;
        public var coinBind:int;
        public var gold:int;
        public var goldBind:int;
        public var honour:int;
        public var arena:int;
        public var prestige:int;
        public var point:int;
        public const _type:int = 12003;
        public static var _regist:SMoney = new SMoney(true);

        public function SMoney(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SMoney();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.coin);
            param1.writeInt(this.coinBind);
            param1.writeInt(this.gold);
            param1.writeInt(this.goldBind);
            param1.writeInt(this.honour);
            param1.writeInt(this.arena);
            param1.writeInt(this.prestige);
            param1.writeInt(this.point);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.coin = param1.readInt();
            this.coinBind = param1.readInt();
            this.gold = param1.readInt();
            this.goldBind = param1.readInt();
            this.honour = param1.readInt();
            this.arena = param1.readInt();
            this.prestige = param1.readInt();
            this.point = param1.readInt();
            
        }

    }
}
